<?php


namespace App\Service\Pay;


class PayFactory
{

    private function __construct()
    {
    }

    /**
     * Create by Peter
     * 2019/12/27 13:33:45
     * Email:904801074@qq.com
     * @param $type
     * @return PayInterface
     */
    static function getPay($type){


        switch ($type){

            case 'weapp':

                return new Weapp();

                break;




        }

    }


}
